<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="~{common/header :: commonHead}"></head>
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="ibox-tools">
                        <a href="javascript: window.location.href='/user_discount/list';" title="刷新"><i
                                class="glyphicon glyphicon-repeat"></i></a>
                    </div>
                    <div id="editable_wrapper" class="dataTables_wrapper form-inline" role="grid">
                        <table class="table table-striped table-bordered table-hover  dataTable" id="editable"
                               aria-describedby="editable_info">
                            <thead>
                            <tr role="row">
                                <th aria-label="权益优免时长（单位：小时）" style="width: 20%;">权益优免时长（单位：小时）</th>
                                <th aria-label="权益优免金额（单位：元）" style="width: 20%;">权益优免金额（单位：元）</th>
                                <th aria-label="是否生效" style="width: 15%;">权益优免金额</th>
                                <th aria-label="操作" style="width: 10%;">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr class="gradeA odd" th:if="${#lists.isEmpty(pageObj)}">
                                <td colspan="9" style="text-align: center">
                                    没有数据o&gt;^&lt;o
                                </td>
                            </tr>
                            <tr class="gradeA odd" th:each="item : ${pageObj}">
                                <td th:text="${item.userFreeTime}"></td>
                                <td th:text="${item.userFreeValue}"></td>
                                <td th:text="${item.status==0?'已生效':'未生效'}"></td>
                                <td class="center ">
                                    <a type="button" th:href="${'/user_discount/edit?id=' + item.id}" title="编辑"><i
                                            class="glyphicon glyphicon-edit"></i></a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script th:inline="javascript">
</script>
</html>